package chances.epg.data.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import chances.epg.entity.content.ServiceContent;


/**
 * 
 */
@Service
public class PackageService extends EpgService {

    /**
     * 
     * @param contentCode
     * @return
     */
    @SuppressWarnings("unchecked")
    public List<ServiceContent> queryUTServicesByContentCode(
            String contentCode) {
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("contentCode", contentCode);
        try {
            List<ServiceContent> epgBusiness = (List<ServiceContent>) queryForList(
                    "getServiceContent", params);
            return epgBusiness;
        } finally {
            params.clear();
            params = null;
        }
    }
}
